package com.codesynapse.dto;

import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Data
@Builder
public class AIResponse {
    private String code;           // 生成的代码或SQL
    private String explanation;    // 解释说明
    private List<String> suggestions; // 改进建议
    private Map<String, Object> metadata; // 元数据
    private LocalDateTime timestamp;
    private String modelName;     // 使用的模型名称
    private Long processingTime;  // 处理时间（毫秒）
    private Boolean fromCache;    // 是否来自缓存
    
    @Builder.Default
    private ResponseStatus status = ResponseStatus.SUCCESS;
    
    public enum ResponseStatus {
        SUCCESS,
        PARTIAL_SUCCESS,
        FAILED
    }
} 